<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>  
        <title>TODO supply a title</title>
        <script language="javascript">
            function updateGoodsType(pcode, pname)
            {
                window.opener.updateGoodsType(pcode, pname);
                window.close();
            }
        </script>
    </h:head>
    <body>
        <h:form>
            <rich:dataTable id="conotherTable" value="#{conExec.otherlist}" var="l"
                            rowClasses="list-row-odd,list-row-even"
                            headerClass="table-header" binding="#{contother.data}">
                <rich:column sortBy="#{l.othernumber}">
                    <f:facet name="header">
                        <h:panelGroup>
                            <h:outputText value="补充合同编号"/>
                        </h:panelGroup>
                    </f:facet>                
                    <h:outputText value="#{l.othernumber}"></h:outputText>
                </rich:column>
                <rich:column sortBy="#{l.cname}">
                    <f:facet name="header">
                        <h:panelGroup>
                            <h:outputText value="合同名称"/>
                        </h:panelGroup>
                    </f:facet>
                    <h:outputText value="#{l.cname}"></h:outputText>
                </rich:column>
                <rich:column>
                    <h:commandLink id="employeeslink" onclick="updateGoodsType('#{l.othernumber}', '#{l.cname}')">
                        <h:outputText value="#{msgs['pub.select']}" />
                    </h:commandLink>
                </rich:column>
            </rich:dataTable>
        </h:form>
    </body>
</html>

